<div class="btn-group"><a href="<?php echo site_url('user/index');?>" class="btn"> <i class="fa fa-arrow-left"></i> <?php echo lang('back_list')?> </a></div>
<div class="clearfix"><p></p></div>
<?php include_once 'inc_ui_limit.php'; ?>
<p></p>
<div class="clearfix"></div>
<p></p>
<div class="boxed">
    <div class="boxed-inner seamless">
        <table class="table table-striped table-hover select-list">
            <thead>
            <tr>
                <th>用户名</th>
                <th>分类名称</th>
                <th>手机号码</th>
                <th>Email</th>
                <th>时间</th>
            </tr>
            </thead>
            <tbody class="sort-list">
            <?php foreach ($list as $v):?>
                <tr data-id="<?php echo $v['id'] ?>" >
                    <td> <?php echo $v['uname'] ?> </td>
                    <td> <?php echo $v['action_name'] ?> </td>
                    <td> <?php echo $v['phone'] ?> </td>
                    <td> <?php echo isset($v['email'])?$v['email']:''; ?> </td>
                    <td> <?php echo  date("Y/m/d H:i:s",$v['timeline']); ?> </td>
                </tr>
            <?php endforeach;?>
            </tbody>
        </table>
    </div>
</div>

<!--<div class="btn-group">-->
<!--    <a id='select-all' class='btn' href="#"> <i class=""></i> --><?php //echo lang('select_all') ?><!-- </a>-->
<!--    <a id='unselect-all' class='btn hide' href="#"> <i class=""></i> --><?php //echo lang('unselect') ?><!-- </a>-->
<!--    <a id="btn-del" class='btn btn-danger' href="#"> <i class="fa fa-times"></i> --><?php //echo lang('del') ?><!-- </a>-->
<!--</div>-->

<?php echo $pages; ?>

<script>
    require(['adminer/js/ui', 'web/js/layer/layer','bootstrap-datetimepicker.zh'],function(ui,layer){
        layer.config({
            path: STATIC_URL + 'web/js/layer/' //layer.js所在的目录，可以是绝对目录，也可以是相对目录
        });
        $('.timepicker').datetimepicker({'language':'zh-CN','format':'yyyy/mm/dd hh:ii:ss','todayHighlight':true});
        acount = {
            url_del: "<?php echo site_url('user/delete'); ?>"
            //,url_sortid: "<?php echo site_url('user/sortid'); ?>"
            ,url_audit: "<?php echo site_url('user/audit'); ?>"
        };

        ui.btn_delete(acount.url_del);		// 删除
        //ui.sortable(acount.url_sortid);	// 排序
        ui.btn_audit(acount.url_audit);// 审核

    });
</script>
